Skip to content

[SYCL] Simplify secondary queue usage #18642

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: sycl
Choose a base branch
from

Conversation

steffenlarsen
Copy link
Contributor

Following KhronosGroup/SYCL-Docs#811, the SYCL 2020 specification will not mandate the use nor exception checking of secondary queues. This allows us to relax the interfaces taking a secondary queue to fully ignore it. This commit drops the passing of the secondary queue throughout the pipeline.

Following KhronosGroup/SYCL-Docs#811, the SYCL
2020 specification will not mandate the use nor exception checking of
secondary queues. This allows us to relax the interfaces taking a
secondary queue to fully ignore it. This commit drops the passing of
the secondary queue throughout the pipeline.

Signed-off-by: Larsen, Steffen <[email protected]>
Signed-off-by: Larsen, Steffen <[email protected]>
/// \param CodeLoc is the code location of the submit call (default argument)
/// \return a SYCL event object, which corresponds to the queue the command
/// group is being enqueued on.
template <typename T>
std::enable_if_t<std::is_invocable_r_v<void, T, handler &>, event> submit(
T CGF, queue &SecondaryQueue,
T CGF, queue &,
Copy link
Contributor

@aelovikov-intel aelovikov-intel May 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer queue & /*SecondaryQueue*/ or [[maybe_unused]] queue &SecondaryQueue. Also, I think the doc string needs to be kept and updated saying we ignore the parameter and that is valid per the specification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants